package com.visikard.response;

import org.json.JSONException;

public class RequestRTUICouponResponse extends BaseResponse {

	public enum RequestResultEnum {
		SUCCESS, FAILED
	}

	private RequestResultEnum result;

	public RequestResultEnum getResult() {
		return result;
	}

	public void setResult(RequestResultEnum result) {
		this.result = result;
	}

	@Override
	public void extractDataFromServer(String response) throws JSONException {
		super.extractDataFromServer(response);

		if (errorCode == SUCCESS) {
			result = RequestResultEnum.SUCCESS;
		}
		else {
			result = RequestResultEnum.FAILED;
		}
	}

}
